package com.api.weavernorth.LogWeaTable.service;

import com.api.weavernorth.LogWeaTable.pojo.logdataPojo;
import org.apache.log4j.Logger;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @Author: bruseewang
 * @Package: com.api.weavernorth.LogWeaTable.service
 * @date: 2021/12/8 18:19
 * @description:
 */
public interface LogDataService {
    /***
     * 根据参数获取服务器上对应路径的日志
     * @param params
     * @param log
     * @return
     */
    List<logdataPojo> ScanLog(Logger log,Map<String,Object> params,Boolean isAll);

    /***
     * 将最新日志同步到数据库表中
     * @param log
     * @param params
     * @return
     */
    List<logdataPojo> Operation_LogData(Logger log,Map<String, Object> params,Boolean isAll);

    /***
     * 根据路径下载文件
     * @param filePath
     * @param response
     * @param isOnline
     * @throws IOException
     */
    void downLoad(String filePath, HttpServletResponse response,boolean isOnline) throws IOException;
}
